package com.legendframework.core.cmd;

/**
 * 指令相关配置
 *
 * 参考plugin.yml 中 commands: 配置项, 具体类见 {@link org.bukkit.command.Command}
 */
public class CommandRootConfig {

    /**
     * 根指令的介绍
     */
    protected String description;

    /**
     * 当指令管理器没找到用户输入的指令时，向用户提示该信息
     * 注意，该参数与{@link org.bukkit.command.Command#usageMessage} 不同
     */
    protected String usageMessage;

    /**
     * 使用根指令的权限
     */
    private String permission;

    /**
     * 当用户无上方权限时提示该信息
     */
    private String permissionMessage;

    public CommandRootConfig(String description, String usageMessage, String permission, String permissionMessage) {
        this.description = description;
        this.usageMessage = usageMessage;
        this.permission = permission;
        this.permissionMessage = permissionMessage;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUsageMessage() {
        return usageMessage;
    }

    public void setUsageMessage(String usageMessage) {
        this.usageMessage = usageMessage;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getPermissionMessage() {
        return permissionMessage;
    }

    public void setPermissionMessage(String permissionMessage) {
        this.permissionMessage = permissionMessage;
    }
}
